<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jstl/fmt" prefix="fmt" %>

<%@ page import="com.conversationboard.model.*"%>
<%@ page import="com.conversationboard.config.*"%>
<%@ page import="com.conversationboard.view.MainMenu"%>

<%@page pageEncoding="UTF-8"%>
<%@page contentType="text/html;charset=UTF-8"%>


<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>User Info</title>
<link rel="stylesheet" type="text/css" href="<%=Configuration.getInstance().getRoot()%>/Stylesheets/<%=StyleSheets.getStyleSheetFileName(request.getCookies())%>" />
</head>

<body>

<%=MainMenu.display(request.getUserPrincipal())%>

<div class="headingblock">
<h1>Clone Users</h1>
</div>

<div class="mainblock">

<div class="formsection">

<p><strong>Clone Users for:</strong> ${checkUser.fullDisplayName}</p>

<table class="table">
		<tr class="header">
			<td class="cell">Login ID</td>
			<td class="cell">Display Name</td>
			<td class="cell">Created On</td>
			<td class="cell">Last Logged In</td>
			<td class="cell">Login Count</td>
			<td class="cell">Post Count</td>
		</tr>
	<c:forEach var="user" items="${users}">
		<tr class="row">
			<td class="cell"><a href="<%=Configuration.getInstance().getRoot()%>/Admin/AdminUserInfoControllerServlet?userid=${user.loginId}">${user.loginId}</a></td>
			<td class="cell">${user.fullDisplayName}</td>
			<td class="cell">${user.creationDateString}</td>
			<td class="cell">${user.lastLoggedInString}</td>
			<td class="cell"><fmt:formatNumber>${user.loginCount}</fmt:formatNumber></td>
			<td class="cell"><fmt:formatNumber>${user.postCount}</fmt:formatNumber></td>
		</tr>
	</c:forEach>
</table>
</div>
</div>

<!--<script src="http://www.google-analytics.com/urchin.js" type="text/javascript"></script>-->
<!--<script type="text/javascript">_uacct = "UA-1148679-1";urchinTracker();</script>-->

</body>

</html>
